<?php
/**
 * Created by PhpStorm.
 * User: xiaoqiang
 * Date: 15-3-21
 * Time: 下午2:00
 */
date_default_timezone_set('Asia/Shanghai');
include_once 'LibApplication.php';
LibApplication::init();
define("SYS_DIR", dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR);
define("SYS_LIBRARY", SYS_DIR . "Library" . DIRECTORY_SEPARATOR);
define("SYS_CONFIG", SYS_DIR . "Config" . DIRECTORY_SEPARATOR);
define("SYS_APPLICATION", SYS_DIR . "Application" . DIRECTORY_SEPARATOR);
define("SYS_DATA", SYS_DIR . "Data" . DIRECTORY_SEPARATOR);
define("SYS_LOG", SYS_DATA . "log" . DIRECTORY_SEPARATOR);
define("PREFIX_STATIC", true);
define("DEFAULT_APPLICATION", "Base");
define("DEFAULT_MODULE", "Index");
define("DEFAULT_METHOD", "Index");
if (php_sapi_name() == "cli") {
    define("CLI_URL", $argv[1]);
}
include_once "Function.php";
\LibRunTime::setStart();
\LibRoute::setRouteModel("html");
\LibRoute::init();
\LibRunTime::setStop();

